using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Data;
using CINES.ITECH.BUSINESS.LOGIC;



[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Service : System.Web.Services.WebService
{
    public Service () {

        

   }
        
    [WebMethod]
    public DataSet ListarCines()
    {
        CINES.ITECH.BUSINESS.LOGIC.NE_CINE oNeCine=new CINES.ITECH.BUSINESS.LOGIC.NE_CINE();
        //Boolean bRes = true;
        
        DataSet ds = new DataSet();
        ds = oNeCine.NE_ListaCIne();
        
        return ds;
    }

    [WebMethod]
    public DataSet ListarCartelera(String co_cine)
    {
        CINES.ITECH.BUSINESS.LOGIC.NE_CARTELERA oNeCartelera = new CINES.ITECH.BUSINESS.LOGIC.NE_CARTELERA();
        //Boolean bRes = true;
         DataSet ds = new DataSet();
         ds = oNeCartelera.NE_ListaCartelera(co_cine);
        return ds;
    }


    [WebMethod]
    public DataSet ListarPeliculas(String co_cine,String cod_pelicula)
    {
        CINES.ITECH.BUSINESS.LOGIC.NE_Pelicula oNePelicula = new CINES.ITECH.BUSINESS.LOGIC.NE_Pelicula();
        //Boolean bRes = true;
        DataSet ds = new DataSet();
        ds = oNePelicula.NE_ListaPelicula(co_cine,cod_pelicula);
        return ds;
    }

    [WebMethod]
    public DataSet ListarPeli()
    {
        CINES.ITECH.BUSINESS.LOGIC.NE_Pelicula oNePelicula = new CINES.ITECH.BUSINESS.LOGIC.NE_Pelicula();
        //Boolean bRes = true;
        DataSet ds = new DataSet();
        ds = oNePelicula.NE_ListaPeli();
        return ds;
    }

    [WebMethod]
    public DataSet ListarCinesParaPeli()
    {
        CINES.ITECH.BUSINESS.LOGIC.NE_Pelicula oNePelicula = new CINES.ITECH.BUSINESS.LOGIC.NE_Pelicula();
        //Boolean bRes = true;
        DataSet ds = new DataSet();
        ds = oNePelicula.NE_ListarCines();

        return ds;
    }
   }


